package com.qf.shopping.vo.activity.constom;

import com.qf.shopping.pojo.activity.Activity;

/**
 * @Author: Mawentao
 * @Date: 2019/4/15 0015 23:07
 * @Description: 放入多表联合查询的数据
 */
public class ActivityConstom extends Activity {

    //活动类型名称 活动表里的
    private String name;

    //用户名 用户表里的 表示创建者
    private String username;

    //推荐显示信息
    private String topHomeDesc;

    //发布显示信息
    private String publishStateDesc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTopHomeDesc() {
        return topHomeDesc;
    }

    public void setTopHomeDesc(String topHomeDesc) {
        this.topHomeDesc = topHomeDesc;
    }

    public String getPublishStateDesc() {
        return publishStateDesc;
    }

    public void setPublishStateDesc(String publishStateDesc) {
        this.publishStateDesc = publishStateDesc;
    }

    /**
     * 显示码对应信息
     */
    public void descStates(){
        if(this.getPublishState() == 1){
            this.setPublishStateDesc("未发布");
        }else if(this.getPublishState() == 2){
            this.setPublishStateDesc("已发布");
        }else if(this.getPublishState() ==3){
            this.setPublishStateDesc("撤销发布");
        }

        if(this.getHomeTop() == 1){
            this.setTopHomeDesc("未推荐");
        }else if(this.getHomeTop() == 2){
            this.setTopHomeDesc("已推荐");
        }
    }
}
